package com.wteam.dragon.shop.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.wteam.dragon.system.basebean.bean.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 品牌类
 * @Author 陈晓辉
 * @Date 2021/3/23 16:45
 */
@Data
@Table
@TableName
@EqualsAndHashCode(callSuper = true)
public class Brand extends BaseBean {
    @IsKey
    @IsNotNull
    @IsAutoIncrement
    @TableId(type = IdType.AUTO)
    @ColumnType(MySqlTypeConstant.BIGINT)
    @Column(comment = "自增id")
    private Long id;

    @IsNotNull
    @Column(comment = "品牌名称(中文)")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String name;

    @Column(comment = "品牌名称(英文名)")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String nameEn;

    @Column(comment = "品牌首字母")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String firstLetter;

    @IsNotNull
    @Column(comment = "排序")
    @ColumnType(MySqlTypeConstant.BIGINT)
    @DefaultValue("0")
    private Integer sort;

    @IsNotNull
    @Column(comment = "是否为厂家制造商")
    @ColumnType(MySqlTypeConstant.TINYINT)
    @DefaultValue("0")
    private Boolean factoryStatus;

    @IsNotNull
    @Column(comment = "是否进行显示")
    @ColumnType(MySqlTypeConstant.TINYINT)
    @DefaultValue("0")
    private Boolean showStatus;

    @IsNotNull
    @Column(comment = "品牌logo")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String logo;

    @Column(comment = "品牌大图")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String bigPic;

    @Column(comment = "品牌故事")
    @ColumnType(MySqlTypeConstant.TEXT)
    private String brandStory;

    @Column(comment = "产地")
    @ColumnType(MySqlTypeConstant.VARCHAR)
    private String place;

    @Column(comment = "备注")
    @ColumnType(MySqlTypeConstant.TEXT)
    private String notes;
}
